package com.stone.design.practice.random;

import java.util.Random;

/**
 * @author Stone
 * @version V1.0
 * @description:
 * @date 5/18/18 23:49
 * @email redsstone@163.com
 */
public class RandomTest {

    public static void main(String[] args) {


        for (int i = 0; i < 5; i++) {
            Random random = new Random();

            for (int j = 0; j < 8; j++) {
                System.out.print(random.nextInt(100) + ",");
            }

            System.out.println("");
        }

        System.out.println(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>");

        for (int i = 0; i < 5; i++) {
            Random random = new Random(1000);

            for (int j = 0; j < 8; j++) {
                System.out.print(random.nextInt(100) + ",");
            }

            System.out.println("");
        }



        //System.out.println(System.nanoTime());
    }
}
